package com.config.sharding.stock.circulation.detail.complex;

import com.config.sharding.stock.circulation.complex.StockDBShardingRule;
import org.apache.shardingsphere.api.sharding.complex.ComplexKeysShardingAlgorithm;
import org.apache.shardingsphere.api.sharding.complex.ComplexKeysShardingValue;
import org.springframework.stereotype.Component;

import java.util.Collection;

/**
 * @author: create by God of SJF
 * @version: v1.0
 * @description: com.config.sharding.stockcirculationdetail.complex
 * @date:2021/9/22
 */
@Component
public class StockDetailDBComplex  extends StockDBShardingRule implements ComplexKeysShardingAlgorithm<String> {
    @Override
    public Collection<String> doSharding(Collection<String> collection, ComplexKeysShardingValue<String> complexKeysShardingValue) {
        Collection<String> strings = super.doSharding(collection, complexKeysShardingValue);
        return strings;
    }
}
